
// @ts-ignore
import Cookies from 'js-cookie'

const TokenKey = 'access-token'
const RefreshTokenKey = 'refresh-token'

export const getToken = () => {
    return Cookies.get(TokenKey)
}

export const setToken = (token: any) => {
    return Cookies.set(TokenKey, token)
}

export const getRefreshToken = () => {
    return Cookies.get(RefreshTokenKey)
}

export const setRefreshToken = (token: any) => {
    return Cookies.set(RefreshTokenKey, token)
}

export const removeToken = () => {
    return Cookies.remove(TokenKey)
}

export const removeRefreshToken = () => {
    return Cookies.remove(RefreshTokenKey)
}


